# $Id: PKGBUILD 86688 2013-03-21 10:51:09Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Sergej Pupykin <pupykin.s+aur@gmail.com>

pkgname=perl-chart
pkgver=2.4.6
pkgrel=1
pkgdesc="Business chart widget collection"
arch=('any')
url="http://search.cpan.org/dist/Chart"
license=('GPL' 'PerlArtistic')
depends=('perl-gd>=1.2')
options=('!emptydirs')
source=(http://www.cpan.org/authors/id/C/CH/CHARTGRP/Chart-$pkgver.tar.gz)
md5sums=('dfcd2b72c56491aa7fc45cd18236de70')

build() {
  cd  $srcdir/Chart-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd  $srcdir/Chart-$pkgver
  make install DESTDIR=$pkgdir
  find $pkgdir -name '.packlist' -delete
  find $pkgdir -name '*.pod' -delete
}
